package com.lx.principles.demo3;

/**
 * @ClassName ComputerDemo
 * @Description: 测试类
 * @Author: 落雪
 * @CreateDate: 2025/1/12 14:07
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/1/12 14:07
 * @UpdateRemark:
 * @Version: 1.0
 */
public class ComputerDemo {

    public static void main(String[] args) {
        CPU cpu = new InterCPU();
        HardDisk hardDisk = new XiJieHardDisk();
        Memory memory = new KingstonMemory();

        Computer computer = new Computer();

        computer.setCpu(cpu);
        computer.setHardDisk(hardDisk);
        computer.setMemory(memory);
        computer.run();
    }
}
